package com.woniu.user.client;

import com.woniu.result.Result;
import org.bouncycastle.pqc.crypto.newhope.NHOtherInfoGenerator;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import sun.reflect.generics.tree.VoidDescriptor;

import java.io.UnsupportedEncodingException;

@FeignClient(contextId = "userVIPManageClient", name = "user")
public interface UserVIPManageClient {

    //购买会员卡
    @GetMapping("buyCard")
    public Result buyCard(@RequestParam("cardId") Integer cardId,@RequestParam("userId") Integer userId);

    //支付购买会员卡
    @GetMapping("payVipCard")
    public void payVipCard(@RequestParam("cardNum") String cardNum) throws Exception;

    @PostMapping("/payCallback")
    public Result payCallback();

}
